//
//  BaseTableView.m
//  OrderSys
//
//  Created by 1 on 2017/6/22.
//  Copyright © 2017年 com.hx. All rights reserved.
//

#import "BaseTableView.h"

@interface BaseTableView()
{
    CGFloat startContentOffsetX;
    CGFloat willEndContentOffsetX;
    CGFloat endContentOffsetX;
}
@end

@implementation BaseTableView


- (void)dealloc
{
    NSLog(@"%@ 这个类被强暴了",NSStringFromClass([self class]));
}


- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self) {
        //[self _init];
    }
    return self;
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
         //[self _init];
    }
    return self;
}


-(void)_init
{
    
}



/*
-(void)scrollViewWillBeginDragging:(UIScrollView*)scrollView

{
    startContentOffsetX= scrollView.contentOffset.x;
    
}

- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset {//将要停止前的坐标
    
    willEndContentOffsetX= scrollView.contentOffset.x;
    
}

- (void)scrollViewDidEndDecelerating:(UIScrollView*)scrollView{
    
    endContentOffsetX= scrollView.contentOffset.x;
    
    if(endContentOffsetX < willEndContentOffsetX && willEndContentOffsetX < startContentOffsetX) {
        
        NSLog(@"画面从右往左移动，前一页");
        
    }else if(endContentOffsetX > willEndContentOffsetX&&
             
             willEndContentOffsetX > startContentOffsetX) {
        
        NSLog(@"画面从左往右移动，后一页");
        
    }
    
}
*/



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end



